package main

import (
	"fmt"
	"time"

	"github.com/pkg/errors"
)

func initConfig() (err error) {
	return errors.New("init config failed")
}

func main() {
	for {
		test()
		time.Sleep(time.Second)
	}
}

func test() {
	/*defer func(){
		if err := recover(); err != nil {
			fmt.Println(err)
			panic(err)
		}
	}()*/
	err := initConfig()
	if err != nil {
		panic(err)
	}
	b := 0
	a := 100 / b
	fmt.Println(a)

}
